package cn.xhjava.crm.workbench.mapper;

import cn.xhjava.crm.workbench.domain.Contacts;
import cn.xhjava.crm.workbench.domain.FunnelVO;

import java.util.List;
import java.util.Map;

public interface ContactsMapper {
    int deleteByPrimaryKey(String id) throws Exception;


    int insert(Contacts record) throws Exception;

    int insertSelective(Contacts record) throws Exception;

    Contacts selectByPrimaryKey(String id) throws Exception;

    int updateByPrimaryKeySelective(Contacts record) throws Exception;

    int updateByPrimaryKey(Contacts record) throws Exception;

    List<Contacts> queryContactsByConditionForPage(Map<String, Object> map) throws Exception;

    int queryCountOfContactsByCondition(Map<String, Object> map) throws Exception;

    Contacts selectById(String id) throws Exception;

    Contacts selectDetailById(String id) throws Exception;

    List<Contacts> selectLikeName(String name) throws Exception;

    List<Contacts> selectContactsListByCustomerId(String id) throws Exception;

    List<FunnelVO> queryContactsCountGroupByCreateTime() throws Exception;

    List<FunnelVO> queryContactsCountGroupBySource() throws Exception;
}